//creates a dynamic login box
function logincreate()
{	
	document.writeln("<div id = \"login\">");
    document.writeln("<form id = \"authenticate\">");
    document.writeln("Username: <input id = \"usr\" type = \"text\" />");
    document.writeln("<br><br>");
	document.writeln("Password: <input id = \"pwd\" type = \"password\" />");
    document.writeln("<br><br>")
	document.writeln("<input type = \"button\" value = \"click me\" onClick = \"formauth()\"/>");
	document.writeln("</form>")
	document.writeln("</div>")
}
//removes the login box
function logindestroy()
{
	divhandle = document.getElementById("login");
	divhandle.parentNode.removeChild(divhandle);
	
}
